package cn.crm.bean;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * DDL entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYPE_CUST")
public class DDL implements java.io.Serializable {

	// Fields

	private Integer typeId;
	private String typeType;
	private Integer typeKey;
	private String typeValue;

	// Constructors

	/** default constructor */
	public DDL() {
	}

	/** full constructor */
	public DDL(String typeType, Integer typeKey, String typeValue) {
		this.typeType = typeType;
		this.typeKey = typeKey;
		this.typeValue = typeValue;
	}

	// Property accessors
	@SequenceGenerator(name = "generator",sequenceName="seq_cust_type_id")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "TYPE_ID", unique = true, nullable = false, precision = 6, scale = 0)
	public Integer getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	@Column(name = "TYPE_TYPE", nullable = false, length = 12)
	public String getTypeType() {
		return this.typeType;
	}

	public void setTypeType(String typeType) {
		this.typeType = typeType;
	}

	@Column(name = "TYPE_KEY", nullable = false, precision = 6, scale = 0)
	public Integer getTypeKey() {
		return this.typeKey;
	}

	public void setTypeKey(Integer typeKey) {
		this.typeKey = typeKey;
	}

	@Column(name = "TYPE_VALUE", nullable = false, length = 20)
	public String getTypeValue() {
		return this.typeValue;
	}

	public void setTypeValue(String typeValue) {
		this.typeValue = typeValue;
	}


}